<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AlterSectsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('sects', function (Blueprint $table) {
            $table->integer('table_num')->comment('桌子数量')->default(0)->nullable();
            $table->integer('is_open')->comment('是否开放')->default(0);
            $table->string('address')->comment('地址')->default('')->nullable();
            $table->string('honor')->comment('荣誉')->nullable();
            $table->string('video', 2000)->comment('视频')->nullable();
            $table->string('image', 2000)->comment('图片')->nullable();
            $table->string('tele')->comment('联系电话')->nullable();
            $table->string('opentime')->comment('营业时间')->nullable();
        });

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
